<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>{$data.agent_name}</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script src="__INDEX__/js/mui.min.js"></script>
		<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="__INDEX__/css/style.css" />
		<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
		<link rel="stylesheet" href="__INDEX__/css/mall.css" />
		<script src="__PUBLIC__/static/js/jquery.min.js"></script>
	</head>

	<body>
		<div class="mui-content mp_content">
			<div class="shopmp_top">
				<div id="slider" class="mui-slider ">
				<div class="mui-slider-group mui-slider-loop">
					<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
					<div class="mui-slider-item mui-slider-item-duplicate">
						<a href="#">
							<img id="third1" src="__INDEX__/images/banner_pint.jpg">
						</a>
					</div>
					{if $ads}
						{foreach name="ads" item="ad"}
						<div class="mui-slider-item">
						<a href="{$ad.url}">
							<img  src="{$ad.thumb}">
						</a>
						</div>
						{/foreach}
						<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
						<div class="mui-slider-item mui-slider-item-duplicate">
							<a href="{$ads[0]['url']}">
								<img  src="{$ads[0]['thumb']}">
							</a>
						</div>
					{else/}
						<div class="mui-slider-item">
								<img id="second" src="__INDEX__/images/banner_hhr.jpg">
						</div>
					{/if}
				</div>
			</div>
		<div class="mingpian">
					<div class="mpname clearfix">
						<span class="name">{$data.agent_name}</span>
					</div>
				</div>
			</div>
			
			<div class="biaodan">
				<ul class="mui-table-view">
					<li class="mui-table-view-cell">
						<span class="iconfont icon-dingwei"></span>
						<span class="item"><a href="{:url('index/map',['lng'=>$data.longitude,'lat'=>$data.latitude,'name'=>$data.agent_name])}" >{$data.address}</a></span>
					</li>					
					<!--<li class="mui-table-view-cell">
						<span class="iconfont icon-miaosha1"></span>
						<span class="item">{$data.start_time}~{$data.end_time}</span>
					</li>-->
					<li class="mui-table-view-cell">
						<span class="iconfont icon-dianhua-copy"></span>
						<span class="item"><a href="tel:{$data.mobile}">{$data.mobile}</a></span>
					</li>
				</ul>
			</div>
			<div class="mp_bt"><em class="line"></em><em>店铺最新活动</em></div>
			<ul class="mui-table-view mp_zxhdlis">
			    <li class="mui-table-view-cell">
			        <a class="mui-navigate-right">{$data.action}</a>
			    </li>
			   
			</ul>
			<div class="mp_bt"><em class="line"></em><em>推荐商品</em></div>
			<ul class="sy_tuijlist clearfix xhgoods">
				{volist name="goods" id="gd"}
				<li>
					<a href="goodsshow.html?goods_id={$gd.id}" empty="该商家未上传商品">
						<div class="sy_tjimg"><img src="{$gd.thumb}"></div>
						<div class="sy_tjinfo">
							<div class="sy_tjnam">{$gd.goods_name}</div>							
							<div class="list_pribox clearfix">							
								<span class="list_pri">¥<em>{$gd.sale_price}</em></span>
								<span class="shopinf_glj">抵扣<em>¥{$gd.dk_price}</em></span>
							</div>
							<div class="shopinf_benbox clearfix">
								<span style="color: #999999;">销量：13</span>
								<span class="list_pribtn">立即购买</span>
							</div>
						</div>
					</a>
				</li>
				{/volist}
			</ul>
			<div class="mp_bt"><em class="line"></em><em>商家介绍</em></div>
			<div class="mp_nr">
				{$data.content}
			</div>
			
		</div>
	</body>
	<script type="text/javascript">
	//获得slider插件对象
var gallery = mui('.mui-slider');
gallery.slider({
  interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
});
	</script>
</html>